package com.service;
import com.Imp.CustomerMapperImpl;
import com.entity.Customer;
import com.mapper.CustomerMapper;

import java.util.List;


public class CustomerService {
    private CustomerMapper customerMapper = new CustomerMapperImpl();

    public List<Customer> getAllCustomers() {
        return customerMapper.getAllCustomers();
    }

    public void addCustomer(Customer customer) {
        customerMapper.addCustomer(customer);
    }

    public void updateCustomer(Customer customer) {
        customerMapper.updateCustomer(customer);
    }

    public void deleteCustomer(String userName) {
        customerMapper.deleteCustomer(userName);
    }
}
